<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ attribute name="id" required="true"%>
<%@ attribute name="name" required="false"%>
<%@ attribute name="caption" required="true"%>
<%@ attribute name="min" required="true"%>
<%@ attribute name="max" required="true"%>

<div class="form-group">
    <label for="${id}" class="col-sm-4 control-label">${caption}</label>
    <div class="col-sm-8">
        <input id="${id}" class="form-control" name="${empty name? id : name}" type="number" min="${min}" max="${max}"
               data-bv-notempty data-bv-between data-bv-between-min="${min}" data-bv-between-max="${max}"/>
    </div>
</div>